package net.togogo.egouweb1238.core.dao.user;

import java.util.List;

import net.togogo.egouweb1238.core.domain.user.Employee;
import net.togogo.egouweb1238.core.query.user.EmployeeQuery;



public interface EmployeeDao {

	/**
	 * 添加
	 * @param employee
	 */
	public Integer addEmployee(Employee employee);

	/**
	 * 根据主键查找
	 * @param employeeQuery
	 */
	public Employee getEmployeeById(String id);

	/**
	 * 根据主键批量查找
	 * @param employeeQuery
	 */
	public List<Employee> getEmployeesByIds(List<String> idList);

	/**
	 * 根据主键删除
	 * @param employeeQuery
	 */
	public Integer deleteById(String id);

	/**
	 * 根据主键批量删除
	 * @param employeeQuery
	 */
	public Integer deleteByIds(List<String> idList);

	/**
	 * 根据主键更新
	 * @param employeeQuery
	 */
	public Integer updateEmployeeById(Employee employee);

	/**
	 * 分页查询
	 * @param employeeQuery
	 */
	public List<Employee> getEmployeeListWithPage(EmployeeQuery employeeQuery);

	/**
	 * 集合查询
	 * @param employeeQuery
	 */
	public List<Employee> getEmployeeList(EmployeeQuery employeeQuery);
	
	/**
	 * 总条数
	 * @param employeeQuery
	 */
	public int getEmployeeListCount(EmployeeQuery employeeQuery);
}
